import 'package:flutter/material.dart';
import 'package:our_library/pages/login_page.dart';
import 'package:provide/provide.dart';
import 'provides/index.dart';

void main() {
  final providers = Providers()
    ..provide(Provider.function((context) => IndexPageProvide()));

  runApp(ProviderNode(
    providers: providers,
    child: MyApp(),
  ));
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '持续学习',
      home: LoginPage(),
    );
  }
}
